package org.smartstruts.config;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * 封装了转发(或重定向)信息
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 */
public class ForwardConfig {
	private String path;
	private String name;
	private boolean redirect = false;

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isRedirect() {
		return redirect;
	}

	public void setRedirect(boolean redirect) {
		this.redirect = redirect;
	}

	/**
	 * 
	 */
	public String toString() {
		return new ToStringBuilder(this).append("name", name).append("path",
				path).append("redirect", redirect).toString();
	}

}
